

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class CoursesDegree
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.Int64 _CoursesID =-1;
public System.Int64 CoursesID
{
get { return _CoursesID;}
set { _CoursesID = value;}
}
System.Double _Degree =-1;
public System.Double Degree
{
get { return _Degree;}
set { _Degree = value;}
}
public CoursesDegree()
{
}
public CoursesDegree(System.Int64 __CoursesID,System.Double __Degree)
{
_CoursesID = __CoursesID;
_Degree = __Degree;
}
public CoursesDegree(System.Int64 __ID,System.Int64 __CoursesID,System.Double __Degree)
{
_ID = __ID;
_CoursesID = __CoursesID;
_Degree = __Degree;
}


             public override bool Equals(object obj)
         {
             if (obj is CoursesDegree)
             {
                 CoursesDegree newObj = (CoursesDegree)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
